package com.zaoshui.hudada.config;

import com.zhipu.oapi.ClientV4;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AIConfig {
    @Value("${aiSecret}")
    String secret;

    @Bean
    public ClientV4 getClient(){
        return new ClientV4.Builder(secret).build();
    }
}
